package com.autumn.config.mq;

import com.autumn.mq.event.EventDataConfigure;
import com.autumn.mq.event.EventTypeEnum;
import com.autumn.mq.event.IEventData;

/**
 * 分布式配置跟踪消息
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2018-01-23 21:43:57
 */
@EventDataConfigure(exchangeSuffix = CloudConfigTraceMessage.EVENT_NAME, eventType = EventTypeEnum.BROADCAST)
public class CloudConfigTraceMessage implements IEventData {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3464992050499374956L;

	/**
	 * 事件名称
	 */
	public final static String EVENT_NAME = "autumn.cloud.config.trace";

	public CloudConfigTraceMessage() {

	}

	public CloudConfigTraceMessage(String serviceId, String name, String label, Integer handleType) {
		super();
		this.serviceId = serviceId;
		this.name = name;
		this.label = label;
		this.handleType = handleType;
	}

	private String serviceId;
	private String name;
	private String label;
	private Integer handleType;

	/**
	 * 获取服务Id
	 * 
	 * @return
	 */
	public String getServiceId() {
		return serviceId;
	}

	/**
	 * 设置服务id
	 * 
	 * @param serviceId
	 *            服务id
	 */
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Integer getHandleType() {
		return handleType;
	}

	public void setHandleType(Integer handleType) {
		this.handleType = handleType;
	}

}
